﻿<Window x:Class="AmazonGlacierGUI.UI.Views.SettingsView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Settings" Height="160" Width="577" WindowStartupLocation="CenterScreen" Loaded="Window_Loaded">
    <Grid Margin="5">
        <StackPanel>
            
            <Grid Margin="0,5,0,0">
                <Grid.RowDefinitions>
                    <RowDefinition  Height="20"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150"></ColumnDefinition>
                    <ColumnDefinition></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Text="Access key"></TextBlock>
                <TextBox Grid.Row="0" Grid.Column="1" Text="{Binding AccessKey,Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}"
                          ></TextBox>
            </Grid>
            <Grid Margin="0,5,0,0">
                <Grid.RowDefinitions>
                    <RowDefinition  Height="20"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150"></ColumnDefinition>
                    <ColumnDefinition></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Text="Secret access key"></TextBlock>
                <TextBox Grid.Row="0" Grid.Column="1" Text="{Binding SecretAccessKey,Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}"
                          ></TextBox>
            </Grid>
            <StackPanel Orientation="Horizontal" Margin="150,10,0,0">
                <Button Content="OK"  Height="22" Width="80" VerticalAlignment="Top"  HorizontalAlignment="Left" Command="{Binding OkCommand}"></Button>
                <Button Content="Close"  Height="22" Width="80" Margin="5,0,0,0" VerticalAlignment="Top"  HorizontalAlignment="Left" Command="{Binding CloseCommand}"></Button>
                
            </StackPanel>
            <Label Content="Check for updates" Height="28" Name="lblCheckForUpdates" Cursor="Hand" Foreground="Blue" MouseUp="lblCheckForUpdates_MouseUp" />
        </StackPanel>
    </Grid>
</Window>
